<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var a=parseInt(prompt("请输入一个数"));
    var v=a%2==0?"偶数":"奇数";
    alert(v);
</script>
</body>
</html>